/*
 * @Descripttion: 
 * @version: 
 * @Author: 付正生
 * @Date: 2022-02-16 17:38:24
 * @LastEditors: Andy
 * @LastEditTime: 2022-06-13 14:03:14
 */
import { getAction, deleteAction, putAction, putparamsAction,postAction, httpAction } from '@/api/manage'
//  设备台账
const messDeviceList = (params)=>getAction("/mess/device/list",params);
const messDeviceAdd = (params)=>postAction("/mess/device/add",params);
const messDeviceEdit = (params)=>putAction("/mess/device/edit",params);
const messDeviceQueryById = (params)=>getAction(`/mess/device/queryById?id=${params}`);
const messDeviceDelete = (params)=>deleteAction(`/mess/device/delete?id=${params}`);
const genEntityCode = (params)=>getAction("/sys/common/genEntityCode",params);
const deviceDeleteBatch = (params)=>deleteAction("/mess/device/deleteBatch",params);
// 设备保养/保养项目
const messDeviceMaintainItemList = (params)=>getAction("/mess/messDeviceMaintainItem/list",params);// 列表
const messDeviceMaintainItemAdd = (params)=>postAction("/mess/messDeviceMaintainItem/add",params);// 新建
const messDeviceMaintainItemDelete = (params)=>deleteAction("/mess/messDeviceMaintainItem/delete",params);// 删除
const messDeviceMaintainItemDeleteBatch = (params)=>deleteAction("/mess/messDeviceMaintainItem/deleteBatch",params);// 批量删除
const messDeviceMaintainItemQueryById = (params)=>getAction("/mess/messDeviceMaintainItem/queryById",params);// 详情
const messDeviceMaintainItemEdit = (params)=>putAction("/mess/messDeviceMaintainItem/edit",params);// 编辑
// 设备保养/保养方案
const messDeviceMaintainProgramList = (params)=>getAction("/assetmgt/messDeviceMaintainProgram/list",params);// 列表
const messDeviceMaintainProgramAdd = (params)=>postAction("/assetmgt/messDeviceMaintainProgram/add",params);// 新建
const messDeviceMaintainProgramEdit = (params)=>putAction("/assetmgt/messDeviceMaintainProgram/edit",params);// 编辑
const messDeviceMaintainProgramQueryById = (params)=>getAction("/assetmgt/messDeviceMaintainProgram/queryById",params);// 详情
const messDeviceMaintainProgramDel = (params)=>deleteAction("/assetmgt/messDeviceMaintainProgram/delete",params);// 删除
const messDeviceMaintainProgramDelBatch = (params)=>deleteAction("/assetmgt/messDeviceMaintainProgram/deleteBatch",params);// 批量删除
const messDeviceMaintainProgramUpdateStatusByid = (params)=>getAction("/assetmgt/messDeviceMaintainProgram/updateStatusByid",params);// 更改状态
const pageQueryDeviceEntity = (params)=>getAction("/mess/device/pageQueryDeviceEntity",params);// 设备下拉
const messCheckItemCheckItem = (params) => getAction(`/mess/messDeviceMaintainItem/checkItem?id=${params}`) // 校验是否可删除
// 生产设置/计件单价
const messProductProcessPriceList = (params)=>getAction("/prices/messProductProcessPrice/list",params) // 计件单价列表
const messProductProcessPriceAdd = (params)=>postAction("/prices/messProductProcessPrice/add",params) // 计件单价新建
const messProductProcessPriceEdit = (params)=>putAction("/prices/messProductProcessPrice/edit",params) // 计件单价编辑
const messProductProcessPriceQueryById = (params)=>getAction("/prices/messProductProcessPrice/queryById",params) // 计件单价详情
const queryMessProductProcessPriceDetailsByMainId = (params)=>getAction("/prices/messProductProcessPrice/queryMessProductProcessPriceDetailsByMainId",params) // 计件单价明细
const messProductProcessPriceDelete = (params)=>deleteAction("/prices/messProductProcessPrice/delete",params) // 计件单价删除
const messProductProcessPriceDelBatchMain = (params)=>deleteAction("/prices/messProductProcessPrice/delBatchMain",params) // 计件单价批量删除
const queryPieceRateDetailsPageList = (params)=>getAction("/mess/pieceRateExt/queryPieceRateDetailsPageList",params) // 计件工资明细
const getPieceRateStatisticsAmount = (params)=>getAction("/mess/messProductReport/getPieceRateStatisticsAmount",params) // 计件工资统计合计数据
const getPieceRateStatistics = (params)=>getAction("/mess/messProductReport/getPieceRateStatistics",params) // 计件工资统计列表数据

export const equipmentRecordApi = {
  getPieceRateStatistics,
  getPieceRateStatisticsAmount,
  queryPieceRateDetailsPageList,
  messProductProcessPriceDelBatchMain,
  queryMessProductProcessPriceDetailsByMainId,
  messProductProcessPriceDelete,
  messProductProcessPriceQueryById,
  messProductProcessPriceEdit,
  messProductProcessPriceAdd,
  messProductProcessPriceList,
  messCheckItemCheckItem,
  messDeviceMaintainProgramUpdateStatusByid,
  messDeviceMaintainProgramDelBatch,
  messDeviceMaintainProgramDel,
  messDeviceMaintainProgramQueryById,
  messDeviceMaintainProgramEdit,
  messDeviceMaintainProgramAdd,
  pageQueryDeviceEntity,
  messDeviceMaintainProgramList,
  messDeviceMaintainItemEdit,
  messDeviceMaintainItemQueryById,
  messDeviceMaintainItemDeleteBatch,
  messDeviceMaintainItemDelete,
  messDeviceMaintainItemAdd,
  messDeviceMaintainItemList,
  deviceDeleteBatch,
  genEntityCode,
  messDeviceAdd,
  messDeviceList,
  messDeviceQueryById,
  messDeviceEdit,
  messDeviceDelete,
}



